package me.frank.tman.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Utils {

    /*
     * 将时间戳转换为时间
     */
    public static String stampToDate(long timestamp) {
        String res;
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("MM-dd HH:mm");
        Date date = new Date(timestamp);
        res = simpleDateFormat.format(date);
        return res;
    }
}
